{template header}



<div class="bs-docs-example" style="clear:both;">

    <form class="form-horizontal"  method="post">
        
        <div class="control-group dib">
            <label style="padding-top:0;" class="control-label" for="inputShortDesc">用户:</label>
            <div class="controls">
                <input name="target_id" type="text" placeholder="用户" value="{$target_id}" style="width:400px;">    
                
            </div>
        </div>
        <div class="control-group dib">
            <div class="controls">
                <input type="hidden" value="search" name="search">
                <button type="submit" class="btn">查询</button>
            </div>
        </div>
    </form>

    <table class="table table-striped">
        <thead>
            <tr>
                <th width="60">ID</th>
                <th width="200">用户</th>
                <th width="300">查看</th>
                <th width="200">对方发送的最新消息</th>
            </tr>
        </thead>
        <tbody>
            {loop $data $k $item}
            <tr>
                <td>{$item['uid']}</td>
                <td><img width="30" height="30" src="{$item['header']}">&nbsp;&nbsp;&nbsp;{$item['nickname']}({$item['uid']})</td>
                <td><a href="?c=admin&a=messagePuNiuChat&targetId={$item['uid']}">发送消息</a></td>
                <td>{if $item['type'] == 'RC:ImgMsg'}<img width="30" height="30"  src="{$item['newContent']}"><a href="{$item['newContent']}" target="_blank">查看</a>{else}{$item['newContent']}{/if}</td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
